package gui;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.*;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


public class BetMenu extends javax.swing.JPanel {
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    javax.swing.GroupLayout layout3 = new javax.swing.GroupLayout(this);
    javax.swing.GroupLayout layout5 = new javax.swing.GroupLayout(this);
    javax.swing.GroupLayout layout6 = new javax.swing.GroupLayout(this);
    int seconds = 30;
    int screenSize = 2;
    int[] betList = new int[MenuCycling.g.getPlayers().size() + 1];	//Array of player's bets for local use
    
    
    BufferedImage image;   // holds image for panel background
    int w, h;              // holds dimensions for panel

    /** Creates new panel StartingMenu */
    public BetMenu(int screenSize) {
        
        this.screenSize = screenSize;
        // read the image file and set the custom panel dimensions based on
        // image dimensions.
        try {
        	if (screenSize == 1)
        		image = ImageIO.read(new File("black_chips800X600.JPG"));  // holds smaller image
        	else if (screenSize == 2)
        		image = ImageIO.read(new File("black_chips2.JPG"));  // holds larger image
            w = image.getWidth();                         // holds image width
            h = image.getHeight();                        // holds image height
            // throw exception and exit if file problems
        } catch (IOException ioe) {
            System.out.println(ioe);
            System.exit(0);
        }

        initComponents();
        
    }
    
    // Generic method to get preferred size
    public Dimension getPreferredSize() {
        return new Dimension(w, h);
    }

    // override of paintComponent to use image
    public void paintComponent(Graphics g) {
        super.paintComponent(g);

        g.drawImage(image, 0, 0, this);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        jPanel1 = new JPanel();
        jPanel2 = new JPanel();
        jPanel3 = new JPanel();
        jPanel4 = new JPanel();
        jPanel5 = new JPanel();
        jPanel6 = new JPanel();
        jPanel7 = new JPanel();
        jPanelBlnk1 = new JPanel();
        jPanelBlnk2 = new JPanel();
        jPanelBlnk3 = new JPanel();
        Bet1Button = new javax.swing.JButton();
        Bet2Button = new javax.swing.JButton();
        Bet3Button = new javax.swing.JButton();
        Bet4Button = new javax.swing.JButton();
        Bet5Button = new javax.swing.JButton();
        Bet6Button = new javax.swing.JButton();
        Answer1Label = new javax.swing.JLabel();
        Answer2Label = new javax.swing.JLabel();
        Answer3Label = new javax.swing.JLabel();
        Answer4Label = new javax.swing.JLabel();
        Answer5Label = new javax.swing.JLabel();
        Answer6Label = new javax.swing.JLabel();
        Odds1Label = new javax.swing.JLabel();
        Odds2Label = new javax.swing.JLabel();
        Odds3Label = new javax.swing.JLabel();
        Odds4Label = new javax.swing.JLabel();
        Odds5Label = new javax.swing.JLabel();
        Odds6Label = new javax.swing.JLabel();
        Payout1Label = new javax.swing.JLabel();
        Payout2Label = new javax.swing.JLabel();
        Payout3Label = new javax.swing.JLabel();
        Payout4Label = new javax.swing.JLabel();
        Payout5Label = new javax.swing.JLabel();
        Payout6Label = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        RemainingLabel = new javax.swing.JLabel();
        OKButton = new javax.swing.JButton();
        BetTimerLabel = new javax.swing.JLabel();
        Font bottom = new Font("Colonna MT", Font.BOLD, 25);
        Font info = new Font("Tahoma", Font.BOLD, 20);
        Font buttons = new Font("Tahoma", Font.BOLD, 15);
        if (screenSize == 1){
        	bottom = new Font("Colonna MT", Font.BOLD, 20);
        	info = new Font("Tahoma", Font.BOLD, 18);
        	buttons = new Font("Tahoma", Font.BOLD, 15);
        }

        setOpaque(true);
        jPanel1.setOpaque(false);
        jPanel2.setOpaque(false);
        jPanel3.setOpaque(false);
        jPanel4.setOpaque(false);
        jPanel5.setOpaque(false);
        jPanel6.setOpaque(false);
        jPanel7.setOpaque(false);
        jPanelBlnk1.setOpaque(false);
        jPanelBlnk2.setOpaque(false);
        jPanelBlnk3.setOpaque(false);
        

        // ANSWER 1
        Bet1Button.setFont(buttons);
        Bet1Button.setBackground(Color.RED);
        Bet1Button.setForeground(Color.BLACK);
        Bet1Button.setText("Bet #1");
        Bet1Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Bet1ButtonActionPerformed(evt);
            }
        });
        Answer1Label.setFont(info);
        Answer1Label.setBackground(Color.BLACK);
        Answer1Label.setForeground(Color.RED);
        Answer1Label.setText("Answer 1");
        
        Odds1Label.setFont(info);
        Odds1Label.setBackground(Color.BLACK);
        Odds1Label.setForeground(Color.RED);
        Odds1Label.setText("Odds #1");
        
        Payout1Label.setFont(info);
        Payout1Label.setBackground(Color.BLACK);
        Payout1Label.setForeground(Color.RED);
        Payout1Label.setText("Payout:");
        
        jLabel1.setFont(info);
        jLabel1.setBackground(Color.BLACK);
        jLabel1.setForeground(Color.RED);
        jLabel1.setText("Chips Placed:");
        
        // ANSWER 2
        Bet2Button.setFont(buttons);
        Bet2Button.setBackground(Color.BLUE);
        Bet2Button.setForeground(Color.BLACK);
        Bet2Button.setText("Bet #2");
        Bet2Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Bet2ButtonActionPerformed(evt);
            }
        });
        
        Answer2Label.setFont(info);
        Answer2Label.setBackground(Color.BLACK);
        Answer2Label.setForeground(Color.BLUE);
        Answer2Label.setText("Answer 2");
        
        Odds2Label.setFont(info);
        Odds2Label.setBackground(Color.BLACK);
        Odds2Label.setForeground(Color.BLUE);
        Odds2Label.setText("Odds #2");
        
        Payout2Label.setFont(info);
        Payout2Label.setBackground(Color.BLACK);
        Payout2Label.setForeground(Color.BLUE);
        Payout2Label.setText("Payout:");
        
        jLabel2.setFont(info);
        jLabel2.setBackground(Color.BLACK);
        jLabel2.setForeground(Color.BLUE);
        jLabel2.setText("Chips Placed:");
        
        
        // ANSWER 3
        Bet3Button.setFont(buttons);
        Bet3Button.setBackground(Color.GREEN);
        Bet3Button.setForeground(Color.BLACK);
        Bet3Button.setText("Bet #3");
        Bet3Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Bet3ButtonActionPerformed(evt);
            }
        });

        Answer3Label.setFont(info);
        Answer3Label.setBackground(Color.BLACK);
        Answer3Label.setForeground(Color.GREEN);
        Answer3Label.setText("Answer 3");
        
        Odds3Label.setFont(info);
        Odds3Label.setBackground(Color.BLACK);
        Odds3Label.setForeground(Color.GREEN);
        Odds3Label.setText("Odds #3");
        
        Payout3Label.setFont(info);
        Payout3Label.setBackground(Color.BLACK);
        Payout3Label.setForeground(Color.GREEN);
        Payout3Label.setText("Payout:");
        
        jLabel3.setFont(info);
        jLabel3.setBackground(Color.BLACK);
        jLabel3.setForeground(Color.GREEN);
        jLabel3.setText("Chips Placed:");
        
        // ANSWER 4
        Bet4Button.setFont(buttons);
        Bet4Button.setBackground(Color.YELLOW);
        Bet4Button.setForeground(Color.BLACK);
        Bet4Button.setText("Bet #4");
        Bet4Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Bet4ButtonActionPerformed(evt);
            }
        });

        Answer4Label.setFont(info);
        Answer4Label.setBackground(Color.BLACK);
        Answer4Label.setForeground(Color.YELLOW);
        Answer4Label.setText("Answer 4");
        
        Odds4Label.setFont(info);
        Odds4Label.setBackground(Color.BLACK);
        Odds4Label.setForeground(Color.YELLOW);
        Odds4Label.setText("Odds #4");
        
        Payout4Label.setFont(info);
        Payout4Label.setBackground(Color.BLACK);
        Payout4Label.setForeground(Color.YELLOW);
        Payout4Label.setText("Payout:");
        
        jLabel4.setFont(info);
        jLabel4.setBackground(Color.BLACK);
        jLabel4.setForeground(Color.YELLOW);
        jLabel4.setText("Chips Placed:");
        
        
        // ANSWER 5
    //    if (MenuCycling.num_Players >= 5){
        Bet5Button.setFont(buttons);
        Bet5Button.setBackground(Color.CYAN);
        Bet5Button.setForeground(Color.BLACK);
        	Bet5Button.setText("Bet #5");
            Bet5Button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    Bet5ButtonActionPerformed(evt);
                }
            });

        Answer5Label.setFont(info);
        Answer5Label.setBackground(Color.BLACK);
        Answer5Label.setForeground(Color.CYAN);
        Answer5Label.setText("Answer 5");
        
        Odds5Label.setFont(info);
        Odds5Label.setBackground(Color.BLACK);
        Odds5Label.setForeground(Color.CYAN);
        Odds5Label.setText("Odds #5");
        
        Payout5Label.setFont(info);
        Payout5Label.setBackground(Color.BLACK);
        Payout5Label.setForeground(Color.CYAN);
        Payout5Label.setText("Payout:");
        
        jLabel5.setFont(info);
        jLabel5.setBackground(Color.BLACK);
        jLabel5.setForeground(Color.CYAN);
        jLabel5.setText("Chips Placed:");
            
     //   }
        
     // ANSWER 6
       // if (MenuCycling.num_Players == 6){
        Bet6Button.setFont(buttons);
        Bet6Button.setBackground(Color.MAGENTA);
        Bet6Button.setForeground(Color.BLACK);
        	Bet6Button.setText("Bet #6");
            Bet6Button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    Bet6ButtonActionPerformed(evt);
                }
            });

        Answer6Label.setFont(info);
        Answer6Label.setBackground(Color.BLACK);
        Answer6Label.setForeground(Color.MAGENTA);
        Answer6Label.setText("Answer 6");
        
        Odds6Label.setFont(info);
        Odds6Label.setBackground(Color.BLACK);
        Odds6Label.setForeground(Color.MAGENTA);
        Odds6Label.setText("Odds #6");
        
        Payout6Label.setFont(info);
        Payout6Label.setBackground(Color.BLACK);
        Payout6Label.setForeground(Color.MAGENTA);
        Payout6Label.setText("Payout:");
        
        jLabel6.setFont(info);
        jLabel6.setBackground(Color.BLACK);
        jLabel6.setForeground(Color.MAGENTA);
        jLabel6.setText("Chips Placed:");
            
        
        RemainingLabel.setFont(bottom);
        RemainingLabel.setBackground(Color.BLACK);
        RemainingLabel.setForeground(Color.WHITE);
        RemainingLabel.setText("Chips Remaining:");

        
        OKButton.setText("OK");
        OKButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                OKButtonActionPerformed(evt);
            }
        });

        BetTimerLabel.setFont(bottom);
        BetTimerLabel.setBackground(Color.BLACK);
        BetTimerLabel.setForeground(Color.WHITE);
        BetTimerLabel.setText("Bet Timer:  " + seconds);
        
        // use smaller layout for smaller screens
        if (screenSize == 1){
        
        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Answer1Label, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 62, Short.MAX_VALUE)
                 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(Payout1Label, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                 .addComponent(Odds1Label, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addGap(40, 40, 40)
                 .addComponent(Bet1Button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                 .addGap(40, 40, 40)
                .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(100, 100, 100))
        );
        jPanel1Layout.setVerticalGroup(
        		 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                 .addGroup(jPanel1Layout.createSequentialGroup()
                     .addGap(5, 5, 5)
                     .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(Answer1Label, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(Odds1Label, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(Bet1Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                          //  .addGap(1, 1, 1)
                            .addComponent(Payout1Label)
                            .addGap(5, 5, 5)
                .addContainerGap(13, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Answer2Label, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 62, Short.MAX_VALUE)
                 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(Payout2Label, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                 .addComponent(Odds2Label, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addGap(40, 40, 40)
                 .addComponent(Bet2Button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                 .addGap(40, 40, 40)
                .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(100, 100, 100))
        );
        jPanel2Layout.setVerticalGroup(
        		 jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                 .addGroup(jPanel2Layout.createSequentialGroup()
                     .addGap(5, 5, 5)
                     .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(Answer2Label, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(Odds2Label, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(Bet2Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                          //  .addGap(1, 1, 1)
                            .addComponent(Payout2Label)
                            .addGap(5, 5, 5)
                .addContainerGap(13, Short.MAX_VALUE))
        );
        
        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Answer3Label, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 62, Short.MAX_VALUE)
                 .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(Payout3Label, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                 .addComponent(Odds3Label, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addGap(40, 40, 40)
                 .addComponent(Bet3Button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                 .addGap(40, 40, 40)
                .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(100, 100, 100))
        );
        jPanel3Layout.setVerticalGroup(
        		 jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                 .addGroup(jPanel3Layout.createSequentialGroup()
                     .addGap(5, 5, 5)
                     .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(Answer3Label, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(Odds3Label, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(Bet3Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                          //  .addGap(1, 1, 1)
                            .addComponent(Payout3Label)
                            .addGap(5, 5, 5)
                .addContainerGap(13, Short.MAX_VALUE))
        );

       
        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Answer4Label, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 62, Short.MAX_VALUE)
                 .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(Payout4Label, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                 .addComponent(Odds4Label, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addGap(40, 40, 40)
                 .addComponent(Bet4Button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                 .addGap(40, 40, 40)
                .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(100, 100, 100))
        );
        jPanel4Layout.setVerticalGroup(
        		 jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                 .addGroup(jPanel4Layout.createSequentialGroup()
                     .addGap(5, 5, 5)
                     .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(Answer4Label, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(Odds4Label, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(Bet4Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                          //  .addGap(1, 1, 1)
                            .addComponent(Payout4Label)
                            .addGap(5, 5, 5)
                .addContainerGap(13, Short.MAX_VALUE))
        );
        
        
        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Answer5Label, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 62, Short.MAX_VALUE)
                 .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(Payout5Label, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                 .addComponent(Odds5Label, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addGap(40, 40, 40)
                 .addComponent(Bet5Button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                 .addGap(40, 40, 40)
                .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(100, 100, 100))
        );
        jPanel5Layout.setVerticalGroup(
        		 jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                 .addGroup(jPanel5Layout.createSequentialGroup()
                     .addGap(5, 5, 5)
                     .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(Answer5Label, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(Odds5Label, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(Bet5Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                          //  .addGap(1, 1, 1)
                            .addComponent(Payout5Label)
                            .addGap(5, 5, 5)
                .addContainerGap(13, Short.MAX_VALUE))
        );
        
        
        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Answer6Label, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 62, Short.MAX_VALUE)
                 .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(Payout6Label, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                 .addComponent(Odds6Label, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addGap(40, 40, 40)
                 .addComponent(Bet6Button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                 .addGap(40, 40, 40)
                .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(100, 100, 100))
        );
        jPanel6Layout.setVerticalGroup(
        		 jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                 .addGroup(jPanel6Layout.createSequentialGroup()
                     .addGap(5, 5, 5)
                     .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(Answer6Label, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(Odds6Label, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(Bet6Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                          //  .addGap(1, 1, 1)
                            .addComponent(Payout6Label)
                            .addGap(5, 5, 5)
                .addContainerGap(13, Short.MAX_VALUE))
        );
        
        
        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(BetTimerLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 140, Short.MAX_VALUE)
                 .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                 .addGap(70, 70, 70)
                 .addComponent(RemainingLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                 .addGap(100, 100, 100))
        );
        
        jPanel7Layout.setVerticalGroup(
        		 jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                 .addGroup(jPanel7Layout.createSequentialGroup()
                     .addGap(5, 5, 5)
                     .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(BetTimerLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(RemainingLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(5, 5, 5)
                .addContainerGap(23, Short.MAX_VALUE))
        );
        
        javax.swing.GroupLayout jPanelBlnk1Layout = new javax.swing.GroupLayout(jPanelBlnk1);
        jPanelBlnk1.setLayout(jPanelBlnk1Layout);
        jPanelBlnk1Layout.setHorizontalGroup(
            jPanelBlnk1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 211, Short.MAX_VALUE)
        );
        jPanelBlnk1Layout.setVerticalGroup(
            jPanelBlnk1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 85, Short.MAX_VALUE)
        );
        
        
        javax.swing.GroupLayout jPanelBlnk2Layout = new javax.swing.GroupLayout(jPanelBlnk2);
        jPanelBlnk2.setLayout(jPanelBlnk2Layout);
        jPanelBlnk2Layout.setHorizontalGroup(
            jPanelBlnk2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 211, Short.MAX_VALUE)
        );
        jPanelBlnk2Layout.setVerticalGroup(
            jPanelBlnk2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 85, Short.MAX_VALUE)
        );
        
        
        javax.swing.GroupLayout jPanelBlnk3Layout = new javax.swing.GroupLayout(jPanelBlnk3);
        jPanelBlnk3.setLayout(jPanelBlnk3Layout);
        jPanelBlnk3Layout.setHorizontalGroup(
            jPanelBlnk3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 211, Short.MAX_VALUE)
        );
        jPanelBlnk3Layout.setVerticalGroup(
            jPanelBlnk3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 85, Short.MAX_VALUE)
        );
        
        
                
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelBlnk2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelBlnk3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(32, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelBlnk2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelBlnk3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(41, Short.MAX_VALUE))
        );
        
        
        layout3.setHorizontalGroup(
            layout3.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout3.createSequentialGroup()
                .addGap(50, 50, 50)
                .addGroup(layout3.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelBlnk1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelBlnk2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelBlnk3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(32, Short.MAX_VALUE))
        );
        layout3.setVerticalGroup(
            layout3.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout3.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelBlnk1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelBlnk2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelBlnk3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(41, Short.MAX_VALUE))
        );

        layout5.setHorizontalGroup(
            layout5.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout5.createSequentialGroup()
                .addGap(50, 50, 50)
                .addGroup(layout5.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelBlnk3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(32, Short.MAX_VALUE))
        );
        layout5.setVerticalGroup(
            layout5.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout5.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelBlnk3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(41, Short.MAX_VALUE))
        );
        
        
        layout6.setHorizontalGroup(
            layout6.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout6.createSequentialGroup()
                .addGap(50, 50, 50)
                .addGroup(layout6.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(32, Short.MAX_VALUE))
        );
        layout6.setVerticalGroup(
            layout6.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout6.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(41, Short.MAX_VALUE))
        );
        }
        // Use larger layout for larger screens
        else if (screenSize == 2){
        	   javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
               jPanel1.setLayout(jPanel1Layout);
               jPanel1Layout.setHorizontalGroup(
                   jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(jPanel1Layout.createSequentialGroup()
                       .addContainerGap()
                       .addComponent(Answer1Label, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                       .addComponent(Payout1Label, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(Odds1Label, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(80, 80, 80)
                        .addComponent(Bet1Button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(80, 80, 80)
                       .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                       .addGap(300, 300, 300))
               );
               jPanel1Layout.setVerticalGroup(
               		 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel1Layout.createSequentialGroup()
                            .addGap(5, 5, 5)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                       .addComponent(Answer1Label, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(Odds1Label, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(Bet1Button, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                                 //  .addGap(1, 1, 1)
                                   .addComponent(Payout1Label)
                                   .addGap(5, 5, 5)
                       .addContainerGap(46, Short.MAX_VALUE))
               );

               javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
               jPanel2.setLayout(jPanel2Layout);
               jPanel2Layout.setHorizontalGroup(
                   jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(jPanel2Layout.createSequentialGroup()
                       .addContainerGap()
                       .addComponent(Answer2Label, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                       .addComponent(Payout2Label, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(Odds2Label, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(80, 80, 80)
                        .addComponent(Bet2Button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(80, 80, 80)
                       .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                       .addGap(300, 300, 300))
               );
               jPanel2Layout.setVerticalGroup(
               		 jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addGap(5, 5, 5)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                       .addComponent(Answer2Label, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(Odds2Label, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(Bet2Button, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                                 //  .addGap(1, 1, 1)
                                   .addComponent(Payout2Label)
                                   .addGap(5, 5, 5)
                       .addContainerGap(46, Short.MAX_VALUE))
               );
               
               javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
               jPanel3.setLayout(jPanel3Layout);
               jPanel3Layout.setHorizontalGroup(
                   jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(jPanel3Layout.createSequentialGroup()
                       .addContainerGap()
                       .addComponent(Answer3Label, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                       .addComponent(Payout3Label, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(Odds3Label, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(80, 80, 80)
                        .addComponent(Bet3Button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(80, 80, 80)
                       .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                       .addGap(300, 300, 300))
               );
               jPanel3Layout.setVerticalGroup(
               		 jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addGap(5, 5, 5)
                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                       .addComponent(Answer3Label, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(Odds3Label, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(Bet3Button, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                                 //  .addGap(1, 1, 1)
                                   .addComponent(Payout3Label)
                                   .addGap(5, 5, 5)
                       .addContainerGap(46, Short.MAX_VALUE))
               );

              
               javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
               jPanel4.setLayout(jPanel4Layout);
               jPanel4Layout.setHorizontalGroup(
                   jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(jPanel4Layout.createSequentialGroup()
                       .addContainerGap()
                       .addComponent(Answer4Label, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                       .addComponent(Payout4Label, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(Odds4Label, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(80, 80, 80)
                        .addComponent(Bet4Button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(80, 80, 80)
                       .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                       .addGap(300, 300, 300))
               );
               jPanel4Layout.setVerticalGroup(
               		 jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel4Layout.createSequentialGroup()
                            .addGap(5, 5, 5)
                            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                       .addComponent(Answer4Label, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(Odds4Label, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(Bet4Button, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                                 //  .addGap(1, 1, 1)
                                   .addComponent(Payout4Label)
                                   .addGap(5, 5, 5)
                       .addContainerGap(46, Short.MAX_VALUE))
               );
               
               
               javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
               jPanel5.setLayout(jPanel5Layout);
               jPanel5Layout.setHorizontalGroup(
                   jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(jPanel5Layout.createSequentialGroup()
                       .addContainerGap()
                       .addComponent(Answer5Label, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                       .addComponent(Payout5Label, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(Odds5Label, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(80, 80, 80)
                        .addComponent(Bet5Button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(80, 80, 80)
                       .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                       .addGap(300, 300, 300))
               );
               jPanel5Layout.setVerticalGroup(
               		 jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel5Layout.createSequentialGroup()
                            .addGap(5, 5, 5)
                            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                       .addComponent(Answer5Label, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(Odds5Label, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(Bet5Button, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                                 //  .addGap(1, 1, 1)
                                   .addComponent(Payout5Label)
                                   .addGap(5, 5, 5)
                       .addContainerGap(46, Short.MAX_VALUE))
               );
               
               
               javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
               jPanel6.setLayout(jPanel6Layout);
               jPanel6Layout.setHorizontalGroup(
                   jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(jPanel6Layout.createSequentialGroup()
                       .addContainerGap()
                       .addComponent(Answer6Label, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                       .addComponent(Payout6Label, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(Odds6Label, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(80, 80, 80)
                        .addComponent(Bet6Button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(80, 80, 80)
                       .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                       .addGap(300, 300, 300))
               );
               jPanel6Layout.setVerticalGroup(
               		 jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel6Layout.createSequentialGroup()
                            .addGap(5, 5, 5)
                            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                       .addComponent(Answer6Label, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(Odds6Label, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(Bet6Button, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                                 //  .addGap(1, 1, 1)
                                   .addComponent(Payout6Label)
                                   .addGap(5, 5, 5)
                       .addContainerGap(46, Short.MAX_VALUE))
               );
               
               
               javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
               jPanel7.setLayout(jPanel7Layout);
               jPanel7Layout.setHorizontalGroup(
                   jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(jPanel7Layout.createSequentialGroup()
                       .addContainerGap()
                       .addComponent(BetTimerLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 275, Short.MAX_VALUE)
                        .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(100, 100, 100)
                        .addComponent(RemainingLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(300, 300, 300))
               );
               
               jPanel7Layout.setVerticalGroup(
               		 jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel7Layout.createSequentialGroup()
                            .addGap(5, 5, 5)
                            .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                       .addComponent(BetTimerLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                       .addComponent(RemainingLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                                   .addGap(5, 5, 5)
                       .addContainerGap(46, Short.MAX_VALUE))
               );
               
               javax.swing.GroupLayout jPanelBlnk1Layout = new javax.swing.GroupLayout(jPanelBlnk1);
               jPanelBlnk1.setLayout(jPanelBlnk1Layout);
               jPanelBlnk1Layout.setHorizontalGroup(
                   jPanelBlnk1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGap(0, 311, Short.MAX_VALUE)
               );
               jPanelBlnk1Layout.setVerticalGroup(
                   jPanelBlnk1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGap(0, 108, Short.MAX_VALUE)
               );
               
               
               javax.swing.GroupLayout jPanelBlnk2Layout = new javax.swing.GroupLayout(jPanelBlnk2);
               jPanelBlnk2.setLayout(jPanelBlnk2Layout);
               jPanelBlnk2Layout.setHorizontalGroup(
                   jPanelBlnk2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGap(0, 311, Short.MAX_VALUE)
               );
               jPanelBlnk2Layout.setVerticalGroup(
                   jPanelBlnk2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGap(0, 108, Short.MAX_VALUE)
               );
               
               
               javax.swing.GroupLayout jPanelBlnk3Layout = new javax.swing.GroupLayout(jPanelBlnk3);
               jPanelBlnk3.setLayout(jPanelBlnk3Layout);
               jPanelBlnk3Layout.setHorizontalGroup(
                   jPanelBlnk3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGap(0, 311, Short.MAX_VALUE)
               );
               jPanelBlnk3Layout.setVerticalGroup(
                   jPanelBlnk3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGap(0, 108, Short.MAX_VALUE)
               );
               
               
                       
               layout.setHorizontalGroup(
                   layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(layout.createSequentialGroup()
                       .addGap(70, 70, 70)
                       .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                           .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanelBlnk2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanelBlnk3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                       .addContainerGap(32, Short.MAX_VALUE))
               );
               layout.setVerticalGroup(
                   layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(layout.createSequentialGroup()
                       .addContainerGap()
                       .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanelBlnk2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanelBlnk3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addContainerGap(82, Short.MAX_VALUE))
               );
               
               
               layout3.setHorizontalGroup(
                   layout3.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(layout3.createSequentialGroup()
                       .addGap(70, 70, 70)
                       .addGroup(layout3.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                           .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanelBlnk1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanelBlnk2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanelBlnk3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                       .addContainerGap(32, Short.MAX_VALUE))
               );
               layout3.setVerticalGroup(
                   layout3.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(layout3.createSequentialGroup()
                       .addContainerGap()
                       .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanelBlnk1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanelBlnk2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanelBlnk3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addContainerGap(82, Short.MAX_VALUE))
               );

               layout5.setHorizontalGroup(
                   layout5.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(layout5.createSequentialGroup()
                       .addGap(70, 70, 70)
                       .addGroup(layout5.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                           .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanelBlnk3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                       .addContainerGap(32, Short.MAX_VALUE))
               );
               layout5.setVerticalGroup(
                   layout5.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(layout5.createSequentialGroup()
                       .addContainerGap()
                       .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanelBlnk3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addContainerGap(82, Short.MAX_VALUE))
               );
               
               
               layout6.setHorizontalGroup(
                   layout6.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(layout6.createSequentialGroup()
                       .addGap(70, 70, 70)
                       .addGroup(layout6.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                           .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                           .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                       .addContainerGap(32, Short.MAX_VALUE))
               );
               layout6.setVerticalGroup(
                   layout6.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addGroup(layout6.createSequentialGroup()
                       .addContainerGap()
                       .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                       .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                       .addContainerGap(82, Short.MAX_VALUE))
               );
        }
        
        
        // Use number of players to determine the layout of the screen
        javax.swing.GroupLayout gameLayout = layout;
        if (MenuCycling.num_Players == 1){
            gameLayout = layout;
        }
        else if (MenuCycling.num_Players == 3) 
            gameLayout = layout3;
        else if (MenuCycling.num_Players == 4)
            gameLayout = layout;
        else if (MenuCycling.num_Players == 5)
            gameLayout = layout5;
        else if (MenuCycling.num_Players == 6)
            gameLayout = layout6;
            
        this.setLayout(gameLayout);


    }// </editor-fold>//GEN-END:initComponents

    //Actions for placing bet on bet #1
    private void Bet1ButtonActionPerformed(java.awt.event.ActionEvent evt) {
    	performBetButtonOperations(0);
    	
    }//GEN-LAST:event_Bet1ButtonActionPerformed

    private void Bet2ButtonActionPerformed(java.awt.event.ActionEvent evt) {
    	performBetButtonOperations(1);
    	
    }//GEN-LAST:event_Bet2ButtonActionPerformed
    
    private void Bet3ButtonActionPerformed(java.awt.event.ActionEvent evt) {
    	performBetButtonOperations(2);
    	
    }//GEN-LAST:event_Bet3ButtonActionPerformed
    
    private void Bet4ButtonActionPerformed(java.awt.event.ActionEvent evt) {
    	performBetButtonOperations(3);
    	
    }
    
    private void Bet5ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Bet1ButtonActionPerformed
    	performBetButtonOperations(4);
    	
    }//GEN-LAST:event_Bet1ButtonActionPerformed
    
    private void Bet6ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Bet1ButtonActionPerformed
    	performBetButtonOperations(5);
    	
    }//GEN-LAST:event_Bet1ButtonActionPerformed

    private void OKButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_OKButtonActionPerformed
        // TODO add your handling code here:
    	
		//Clear betList for next round
		for(int i = 0; i < betList.length; i++)
			betList[i] = 0;
    	
    	MenuCycling.displayResultScreen();
       
    }//GEN-LAST:event_OKButtonActionPerformed
    
//  ActionListener for timer question screen
    public class TimerListener implements ActionListener {
           public void actionPerformed(ActionEvent e) {
        		

           // go back to the beginning 
        	if (seconds <= 0) {
        		
        		//Clear betList for next round
        		for(int i = 0; i < betList.length; i++)
        			betList[i] = 0;
        		
        		MenuCycling.displayResultScreen();;
        		seconds = 30;
        	}
           // otherwise get next message in array
           else{
        	   BetTimerLabel.setText("Bet Timer:  " + seconds);
        	   seconds--;
        	   repaint();
           }
           
             }  // end of actionPerformed
     }   // end of TimerListener
    
    // initializes the screen's answer displays
    public void refreshAnswers(){
    	BetTimerLabel.setText("Bet Timer:  " + seconds);
    	MenuCycling.oddsCalc();
    	Answer1Label.setText("Answer # 1: " + MenuCycling.sortedAnswers.get(0));
    	Answer2Label.setText("Answer # 2: " + MenuCycling.sortedAnswers.get(1));
    	Answer3Label.setText("Answer # 3: " + MenuCycling.sortedAnswers.get(2));
    	if (MenuCycling.num_Players >= 4){  		
    		Answer4Label.setText("Answer # 4: " + MenuCycling.sortedAnswers.get(3));
    		if (MenuCycling.num_Players >= 5){
    			Answer5Label.setText("Answer # 5: " + MenuCycling.sortedAnswers.get(4));
    			if (MenuCycling.num_Players == 6)
    				Answer6Label.setText("Answer #6: " + MenuCycling.sortedAnswers.get(5));
    		}
    	}
    	
    	Odds1Label.setText("Odds:   " + MenuCycling.odds.get(0));
    	MenuCycling.payouts.add(0,MenuCycling.odds.get(0));
    	Odds2Label.setText("Odds:   " + MenuCycling.odds.get(1));
    	MenuCycling.payouts.add(1,MenuCycling.odds.get(1));
    	if (MenuCycling.num_Players == 3){
    		Odds3Label.setText("Odds:   " + MenuCycling.odds.get(0));
    		MenuCycling.payouts.add(2,MenuCycling.odds.get(0));
    	}
    	else if (MenuCycling.num_Players == 4 || MenuCycling.num_Players == 1){
    		Odds3Label.setText("Odds:   " + MenuCycling.odds.get(1));
    		MenuCycling.payouts.add(2,MenuCycling.odds.get(1));
        	Odds4Label.setText("Odds:   " + MenuCycling.odds.get(0));
        	MenuCycling.payouts.add(3,MenuCycling.odds.get(0));
    	}
    	else if  (MenuCycling.num_Players == 5){
    		Odds3Label.setText("Odds:   " + MenuCycling.odds.get(2));
    		MenuCycling.payouts.add(2,MenuCycling.odds.get(2));
    		Odds4Label.setText("Odds:   " + MenuCycling.odds.get(1));
    		MenuCycling.payouts.add(3,MenuCycling.odds.get(1));
    		Odds5Label.setText("Odds:   " + MenuCycling.odds.get(0));
    		MenuCycling.payouts.add(4,MenuCycling.odds.get(0));
    	}
    	else if  (MenuCycling.num_Players == 6){
    		Odds3Label.setText("Odds:   " + MenuCycling.odds.get(2));
    		MenuCycling.payouts.add(2,MenuCycling.odds.get(2));
    		Odds4Label.setText("Odds:   " + MenuCycling.odds.get(2));
    		MenuCycling.payouts.add(3,MenuCycling.odds.get(2));
    		Odds5Label.setText("Odds:   " + MenuCycling.odds.get(1));
    		MenuCycling.payouts.add(4,MenuCycling.odds.get(1));
    		Odds6Label.setText("Odds:   " + MenuCycling.odds.get(0));
    		MenuCycling.payouts.add(5,MenuCycling.odds.get(0));
    	}
    }
    
    public void setChips(){
    	jLabel1.setText("Chips Placed:");
    	jLabel2.setText("Chips Placed:");
    	jLabel3.setText("Chips Placed:");
    	jLabel4.setText("Chips Placed:");
    	jLabel5.setText("Chips Placed:");
    	Payout1Label.setText("Payout:");
    	Payout2Label.setText("Payout:");
    	Payout3Label.setText("Payout:");
    	Payout4Label.setText("Payout:");
    	Payout5Label.setText("Payout:");
    	Payout6Label.setText("Payout:");
    	RemainingLabel.setText("Chips Remaining: " + MenuCycling.getPlayerChips());
    }
    
    private void performBetButtonOperations(int buttonNumber){
    	boolean validbet = true;
    	int curbet = 0;	//Amount entered for bet
    	String s = (String)JOptionPane.showInputDialog("Please enter the amount of chips you would like to bet");	//User input

    	//Display warning if player enters input which cannot be parsed to an int
    	try{	
            
    		curbet = Integer.parseInt(s);
    		if (curbet<0)
    		{
    			JOptionPane.showMessageDialog(null, "Invalid Bet");
    			validbet = false;
    		}
    		
    	} catch(NumberFormatException number)
    	{
    	
          JOptionPane.showMessageDialog(null, "Invalid Bet");
          validbet = false;
    	}
    	
    	//Place bet if a valid value was entered
    	if (validbet) 	{
    		
    		//Return excess chips to remaining chips if player has already entered a larger bet on this answer
    		if(curbet < betList[buttonNumber]){
    			MenuCycling.p1.setGame_chips(MenuCycling.p1.getGame_chips() + betList[buttonNumber]);
    			
    			//Convert game chips to permanent chips if appropriate
    			int otherBets = 0; //Number of bets placed in other answers
    			for(int i = 0; i < betList.length; i++)
    				otherBets += betList[i];
    			otherBets -= betList[buttonNumber];
    			if(otherBets <= 1 && MenuCycling.p1.getGame_chips() > 0 && MenuCycling.p1.getPermanent_chips() <= 1){
    				MenuCycling.p1.setGame_chips(MenuCycling.p1.getGame_chips() - 1);
    				MenuCycling.p1.setPermanent_chips(MenuCycling.p1.getPermanent_chips() + 1);
    				if(otherBets == 0 && MenuCycling.p1.getGame_chips() > 0 && MenuCycling.p1.getPermanent_chips() == 1){
    					MenuCycling.p1.setGame_chips(MenuCycling.p1.getGame_chips() - 1);
        				MenuCycling.p1.setPermanent_chips(MenuCycling.p1.getPermanent_chips() + 1);
    				}
    			}
				betList[buttonNumber] = 0;
    			
    		}
    		
    		//Place bet if entered bet is equal or less than player's sum of permanent chips, game chips, and chips already placed on bet
    		if(MenuCycling.p1.getGame_chips() + MenuCycling.p1.getPermanent_chips() + betList[buttonNumber] >= curbet){
    			MenuCycling.p1.setGame_chips(MenuCycling.p1.getGame_chips() + betList[buttonNumber]); //Return excess chips before bet is placed
    			MenuCycling.p1.placeBet(buttonNumber, curbet);
    			betList[buttonNumber] = curbet;
    			
    			//Update appropriate label for chips placed and potential payout of selected bet
    			switch(buttonNumber){
    			case 0:
    				jLabel1.setText("Chips Placed:   " + curbet);
    				Payout1Label.setText("Payout:  " + curbet * MenuCycling.payouts.get(0) );
    				break;
    			case 1:
    				jLabel2.setText("Chips Placed:   " + curbet);
    				Payout2Label.setText("Payout:  " + curbet * MenuCycling.payouts.get(1) );
    				break;
    			case 2:
    				jLabel3.setText("Chips Placed:   " + curbet);
    				Payout3Label.setText("Payout:  " + curbet * MenuCycling.payouts.get(2) );
    				break;
    			case 3:
    				jLabel4.setText("Chips Placed:   " + curbet);
    				Payout4Label.setText("Payout:  " + curbet * MenuCycling.payouts.get(3) );
    				break;
    			case 4:
    				jLabel5.setText("Chips Placed:   " + curbet);
    				Payout5Label.setText("Payout:  " + curbet * MenuCycling.payouts.get(4) );
    				break;
    			case 5:
    				jLabel6.setText("Chips Placed:   " + curbet);
    				Payout6Label.setText("Payout:  " + curbet * MenuCycling.payouts.get(5) );
    				break;
    			default:
    				System.err.println("Invalid button number from BetMenu class");
    			}
    				
                this.RemainingLabel.setText("Chips Remaining: " + MenuCycling.getPlayerChips());
    		}
    		else
    			JOptionPane.showMessageDialog(null, "Not enough chips!");
    	}
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel Answer1Label;
    private javax.swing.JLabel Answer2Label;
    private javax.swing.JLabel Answer3Label;
    private javax.swing.JLabel Answer4Label;
    private javax.swing.JLabel Answer5Label;
    private javax.swing.JLabel Answer6Label;
    private javax.swing.JButton Bet1Button;
    private javax.swing.JButton Bet2Button;
    private javax.swing.JButton Bet3Button;
    private javax.swing.JButton Bet4Button;
    private javax.swing.JButton Bet5Button;
    private javax.swing.JButton Bet6Button;
    private javax.swing.JLabel BetTimerLabel;
    private javax.swing.JButton OKButton;
    private javax.swing.JLabel Odds1Label;
    private javax.swing.JLabel Odds2Label;
    private javax.swing.JLabel Odds3Label;
    private javax.swing.JLabel Odds4Label;
    private javax.swing.JLabel Odds5Label;
    private javax.swing.JLabel Odds6Label;
    private javax.swing.JLabel Payout1Label;
    private javax.swing.JLabel Payout2Label;
    private javax.swing.JLabel Payout3Label;
    private javax.swing.JLabel Payout4Label;
    private javax.swing.JLabel Payout5Label;
    private javax.swing.JLabel Payout6Label;
    private javax.swing.JLabel RemainingLabel;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanelBlnk1;
    private javax.swing.JPanel jPanelBlnk2;
    private javax.swing.JPanel jPanelBlnk3;
    
    // End of variables declaration//GEN-END:variables
}